﻿using System;

namespace BorgExt
{
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public class PlugAttribute : Attribute
    {
        internal string Name { get; set; }

        public bool AutoPlug { get; set; }
        public bool AutoSelect { get; set; }

        public string OnPlugged { get; set; }
        public string OnUnplugged { get; set; }

        public string OnSelected { get; set; }
        public string OnDeselected { get; set; }

        public PlugAttribute(string name)
        {
            Name = name;
            AutoPlug = true;
            AutoSelect = false;
        }
    }
}

